package com.tzy.user.service;
import com.tzy.common.entity.MyAssets;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * feign客户端通过动态代理; 出错的概率小一些
 */
//@FeignClient(name = "user")//,fallback = UserServiceFallback.class
//@Component//标识为组件
public interface FootprintService {
    //映射地址, 通过反射获取 ServiceId,url ,Class
    @PostMapping("/footprint/addFootprint")
    boolean save(@RequestBody MyAssets myAssets);
//    @PutMapping("/user/add")
//    int insert(@RequestBody User user);
}
